package com.cloudsea.yunhaistores.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("payment_orders")
public class PaymentOrders {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String orderNo;
    private Long merchantId;
    private Long storeId;
    private Long tableId;
    private String orderType;
    private Long deliveryAddressId; // 注意：我们DTO里有地址对象，但表里是ID，暂时先留空
    private Long customerId;
    private String pickupNo;
    private Integer fulfillmentStatus;
    private String transactionId;
    private Long totalAmount; // 单位：分
    private Integer payStatus;
    private String paymentMethod;
    private String paymentChannel;
    private String description;
    private LocalDateTime createdAt;
    private LocalDateTime paidAt;
}